<#assign base=request.contextPath />
<#assign oneLabel="ERP管理">

<#assign twoLabel="员工管理">
<#assign twoUrl=base+"/employee/list">

<#assign leafLabel="员工列表">
<!DOCTYPE html>
<html lang="en">
<head>
	<#include "/commons/headImport.ftl">
</head>
<body>
<#include "/commons/header.ftl">
<form class="form-horizontal" name="formName">
	<div class="row">
		<div class="col-xs-12">
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right">姓名</label>
				<div class="col-sm-4">
					<input type="text" name="keyWord" value="${queryVO.keyWord!''}" class="col-sm-8" />
				</div>
				<div class="col-sm-4orm-group center">
					<button class="btn btn-xs btn-success" type="button" id="search_id" url="${base}/employee/list">
						<i class="icon-search icon-on-right bigger-110"></i>查询
					</button>
					<button class="btn btn-xs" type="reset" id="reset_id" url="${base}/employee/list">
						<i class="icon-undo bigger-110"></i>重置
					</button>
				</div>
			</div>
			<div class="space-4"></div>
			
			<div class="table-responsive">
				<p>
					<@shiro.hasPermission name="/employee/add">
					<button class="btn btn-minier btn-success" id="to_add_id" url="${base}/employee/add">
						<i class="icon-plus bigger-110"></i>新增员工
					</button>
					</@shiro.hasPermission>
				</p>
				<table class="table table-striped table-bordered table-hover">
					<thead>
						<tr>
							<th class="center" width="5%">#</th>
							<th width="8%">姓名</th>
							<th width="8%">手机</th>
							<th width="10%">身份证号</th>
							<th width="10%">籍贯</th>
							<th width="5%">状态</th>
							<th width="10%">卡号</th>
							<th width="10%">开户行</th>
							<th width="10%">紧急联系人</th>
							<th width="15%"></th>
						</tr>
					</thead>
					<tbody>
					<#if pr??>
						<#list pr.data as employee>									
						<tr>
							<td class="center">${employee_index+1}</td>
							<td>${employee.fullName!}</td>
							<td>${employee.mobile!}</td>
							<td>${employee.idCard!}</td>
							<td>${employee.nativePlace!}</td>
							<td>${employee.status!}</td>
							<td>${employee.bankNumber!}</td>
							<td>${employee.bankName!}</td>
							<td>${employee.urgentName!}</td>
							<td>
								<div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
									<@shiro.hasPermission name="/employee/edit">
									<a class="btn btn-minier btn-success" href="javascript:get('${base}/employee/edit/${employee.id}');" title="编辑">
										<i class="icon-edit bigger-120"></i>编辑
									</a>
									</@shiro.hasPermission>
									<@shiro.hasPermission name="/employee/delete">
									<a class="btn btn-minier btn-danger id-btn-dialog2" 
										data='({"url":"${base}/employee/delete/${employee.id}","form":"formName"})' 
										href="javascript:void(0);" title="删除">
										<i class="icon-trash bigger-120"></i>删除
									</a>
									</@shiro.hasPermission>
								</div>
							</td>
						</tr>
						</#list>
					</#if>
					<#if ((pr.data)?size==0)>
						<tr>
							<td colspan="6" class="center">没有查询任何数据</td>
						</tr>
					</#if>
					</tbody>
				</table>
			<@p.p pageParam=pr toURL="${base}/employee/list" formName="formName"/>
		</div><!-- /.table-responsive -->
	</div><!-- /col -->
</div><!-- /row -->
</form>
<#include "/commons/footer.ftl">
</body>
</html>
